import VueRouter from "vue-router";
// 第一行
//1.1 导入在销商品组件
import inSaleGoods from './components/goodsAdministration/inSaleGoods.vue'
// 1.2 导入在销商品中的详情组件
import goodsInfo from './components/goodsAdministration/goodsInfo.vue'
// 2.1 导入商品添加组件
import goodsAdd from './components/goodsAdministration/goodsAdd.vue'
// 2.2 导入商品添加详细组件
import goodsaddInfo from './components/goodsAdministration/goodsAddInfo.vue'
// 第二行
// 1.1导入采购商品管理
import purGoods from './components/PurchaseAdmin/PurchaseGoods.vue'
var router=new VueRouter({
    routes:[
        {path:'/',redirect:'/goodsadmin/inSaleGoods'},
        {path:'/goodsadmin/inSaleGoods',component:inSaleGoods},
        {path:'/goodsadmin/goodsinfo/:id',component:goodsInfo,name:"goodsinfo"},
        {path:'/goodsadmin/goodsAdd',component:goodsAdd,name:"goodsAdd"},
        {path:'/goodsadmin/goodsaddInfo/',component:goodsaddInfo,name:"goodsAddInfo"},
        {path:'/purGoods/',component:purGoods,name:"purGoods"}
    ]
})

export default router